<?php
    session_start();
    include_once '../../../../controlador/php/conexion/Conexion.php';
    $con = new Conexion();
    
    $medl = "select usu_oid,rtrim(usu_nombres)as nombres,rtrim(usu_apellidos)as apellidos
             from roll inner join usuario on roll.rol_oid=usuario.usu_tipoUsu
             where usu_tipoUsu = 71 or usu_tipoUsu = 91 ";
    $resp = $con->query($medl);
    
    while ($respu = mssql_fetch_array($resp)){
        $medicos[] = $respu;
    }
    
    print_r(json_encode($medicos));
    
    mssql_close();
?>
